package com.example.demo.feigns.fallback;

import com.example.demo.domain.UserInfo;
import com.example.demo.feigns.UserFeign;
import org.springframework.stereotype.Component;

@Component
public class UserFeignFallback implements UserFeign {

    @Override
    public UserInfo getUserInfo(String id) {
        throw new RuntimeException("获取用户信息失败");
    }

    @Override
    public void updateUserInfo(UserInfo userInfo) {
        throw new RuntimeException("更新用户失败");
    }
}
